package com.nan.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nan.model.Student;
import com.nan.model.Teacher;
import com.nan.service.TeacherService;
import com.nan.mapper.TeacherMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class TeacherServiceImpl extends ServiceImpl<TeacherMapper, Teacher>
implements TeacherService{

    @Autowired
    private TeacherMapper teacherMapper;

    @Override
    public List<Student> getStudentssByTeacherId(Long id) {
        return teacherMapper.getStudentssByTeacherId(id);
    }
}




